﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.Basic.SysSuppliers.AddEdit" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>供应商信息-编辑</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function valReq() {
            var altStr = valid_isempty('SUPPLIERSNAME', '供应商名称');
            altStr += valid_isempty('SUPPLIERSCODE', '代码');
            altStr += valid_isempty('BOXNUMBER', '每箱盒数');
            altStr += valid_isempty('BOXNUMBER', '每盒卡数');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            else {
                return true;
            }
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="titleTxt">
                供应商名称：
            </td>
            <td class="contentTxt">
                <input id="SUPPLIERSNAME" runat="server" type="text" maxlength="25" class="dfinputNoEmp" />
            </td>
                 <td class="titleTxt">
                简称：
            </td>
            <td class="contentTxt">
                <input id="SHORTNAME" runat="server" type="text" class="dfinput" maxlength="25" />
            </td>
        </tr>
        <tr>
       
            <td class="titleTxt">
                代码：
            </td>
            <td class="contentTxt">
                <input id="SUPPLIERSCODE" runat="server" type="text" class="dfinputNoEmp"  maxlength="25"  />
            </td>
                  <td class="titleTxt">
                联系人：
            </td>
            <td class="contentTxt">
                <input id="CONTACTPERSON" runat="server" type="text" class="dfinput" maxlength="12" />
            </td>
        </tr>
        <tr>
      
            <td class="titleTxt">
                联系电话：
            </td>
            <td class="contentTxt">
                <input id="CONTACTPHONE" runat="server" type="text" class="dfinput" maxlength="25" onkeydown="onlyNum();"/>
            </td>
              <td class="titleTxt">
                联系地址：
            </td>
            <td>
                <input id="CONTACTADDRESS" runat="server" type="text" class="dfinput" maxlength="100" />
            </td>
        </tr>
        <tr>
          
            <td class="titleTxt">
                传真：
            </td>
            <td>
                <input id="FAX" runat="server" type="text" class="dfinput" maxlength="50" />
            </td>
                 <td class="titleTxt">
                负责人：
            </td>
            <td class="contentTxt">
                <input id="PRINCIPAL" runat="server" type="text" class="dfinput" maxlength="25" />
            </td>
        </tr>
        <tr>
       
            <td class="titleTxt">
                负责人电话：
            </td>
            <td class="contentTxt">
                <input id="PRINCIPALPHONE" runat="server" type="text" class="dfinput"  maxlength="12" onkeydown="onlyNum();"/>
            </td>
               <td class="titleTxt">
                开户行：
            </td>
            <td class="contentTxt">
                <input id="BANKACCOUNT" runat="server" type="text" class="dfinput" maxlength="50" />
            </td>
        </tr>
        <tr>
         
            <td class="titleTxt">
                账号：
            </td>
            <td class="contentTxt">
                <input id="ACCOUNTNUMBER" runat="server" type="text" class="dfinput" maxlength="25" />
            </td>
                   <td class="titleTxt">
                每箱盒数：
            </td>
            <td class="contentTxt">
                <input id="BOXNUMBER" runat="server" type="text" class="dfinputNoEmp"  onkeydown="onlyNum();" maxlength="9" />
            </td>
        </tr>
        <tr>
     
            <td class="titleTxt">
                每盒卡数：
            </td>
            <td class="contentTxt">
                <input id="CARDNUMBER" runat="server" type="text" class="dfinputNoEmp" onkeydown="onlyNum();"  maxlength="9" />
            </td>
               <td class="titleTxt">
                &nbsp;状态：
            </td>
            <td >
                <input id="STATUS" type="checkbox" runat="server" style="vertical-align: middle;" />
                <label for="Enabled" style="vertical-align: middle;">
                    禁用</label>
                <label style="vertical-align: middle; color: red;">
                    注意：禁用后，将不可用。</label>
            </td>
        </tr>

        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq();"
                    OnClick="btn_Add_Click" />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
